/* 历史记录页面样式 */
.history-container {
    max-width: 1200px;
    margin: 0 auto;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    background: rgba(26, 32, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
}

.history-item:hover {
    border-color: rgba(0, 191, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 191, 255, 0.1);
    transform: translateY(-2px);
}

.history-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.history-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    flex: 1;
}

.history-item-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.history-item-status.success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.history-item-status.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.history-item-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

.history-item-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.history-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.history-meta-item i {
    color: rgba(0, 191, 255, 0.6);
    width: 14px;
}

.meta-label {
    font-weight: 500;
}

.meta-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: rgba(255, 255, 255, 0.6);
}

.history-item-actions {
    display: flex;
    align-items: center;
    margin-left: 24px;
}

.btn-enter-task {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #00bfff 0%, #0080ff 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enter-task:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.3);
}

.btn-enter-task:active {
    transform: translateY(0);
}

.history-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.history-placeholder i {
    font-size: 64px;
    margin-bottom: 24px;
    color: rgba(0, 191, 255, 0.3);
}

.history-placeholder h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.history-placeholder p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

/* 历史记录页面响应式设计 */
@media (max-width: 768px) {
    .history-item {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .history-item-actions {
        margin-left: 0;
        justify-content: center;
    }

    .history-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .history-item-meta {
        flex-direction: column;
        gap: 8px;
    }

    .btn-enter-task {
        width: 100%;
        justify-content: center;
    }
}
